package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 资产区间
 */
@ApiModel(description = "资产区间")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class AssetRange   {
  @JsonProperty("min")
  private Double min = null;

  @JsonProperty("max")
  private Double max = null;

  public AssetRange min(Double min) {
    this.min = min;
    return this;
  }

  /**
   * 最小值
   * @return min
  **/
  @ApiModelProperty(example = "0.0", value = "最小值")


  public Double getMin() {
    return min;
  }

  public void setMin(Double min) {
    this.min = min;
  }

  public AssetRange max(Double max) {
    this.max = max;
    return this;
  }

  /**
   * 最大值
   * @return max
  **/
  @ApiModelProperty(example = "1000000.0", value = "最大值")


  public Double getMax() {
    return max;
  }

  public void setMax(Double max) {
    this.max = max;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AssetRange assetRange = (AssetRange) o;
    return Objects.equals(this.min, assetRange.min) &&
        Objects.equals(this.max, assetRange.max);
  }

  @Override
  public int hashCode() {
    return Objects.hash(min, max);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AssetRange {\n");
    
    sb.append("    min: ").append(toIndentedString(min)).append("\n");
    sb.append("    max: ").append(toIndentedString(max)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

